package org.foreveross.que.infra;

import java.util.List;
import java.util.Map;

import org.foreveross.que.entity.TopicEntity;
import org.foreveross.que.infra.base.ddd.repository.IBaseRepository;

public interface TopicRepository extends IBaseRepository {
	
/**
 * 分页查询所有有效的问题
 * @return
 * @throws Exception
 */
	public List <TopicEntity> findSubjects(Map <String ,Object> paramsMap, Integer pageIndex,Integer pageLen) throws Exception;

	/**
	 *  查询数量
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public Long findSubjectsCount(Map <String ,Object> paramsMap) throws Exception;
	
}
